//
//  SAQuestionnaireAnalysisViewController.m
//  SunOn
//
//  Created by RazeenCheng on 2017/5/2.
//  Copyright © 2017年 NeoZhang. All rights reserved.
//

#import "SAQuestionnaireAnalysisViewController.h"
#import "SAQuestionnaireViewController.h"

@interface SAQuestionnaireAnalysisViewController ()


@property (weak, nonatomic) IBOutlet UILabel *scoreLabel; // 评分成绩

@property (weak, nonatomic) IBOutlet UILabel *questionCountLabel; // 问卷调查总题数
@property (weak, nonatomic) IBOutlet UILabel *effectiveCountLabel; // 有效题数
@property (weak, nonatomic) IBOutlet UILabel *ineffectiveCountLabel; // 无效题数

@property (weak, nonatomic) IBOutlet UILabel *questionAnswerCountLabel; // 答题人数
@property (weak, nonatomic) IBOutlet UILabel *questionFrequencyCountLabel; // 答题频次

@property (weak, nonatomic) IBOutlet UILabel *analysisContentLabel; // 分析





@end

@implementation SAQuestionnaireAnalysisViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    self.analysisContentLabel.text = self.answerString;
}

- (void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"ljiantou"] style:UIBarButtonItemStylePlain target:self action:@selector(backAction)];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)backAction
{
    for (UIViewController *subViewController in self.navigationController.childViewControllers) {
        if ([subViewController isKindOfClass:[SAQuestionnaireViewController class]]) {
            [self.navigationController popToViewController:subViewController animated:YES];
        }
    }
}



#pragma mark - Navigation
- (void)prepareForNavigation
{
    
}



@end
